home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWPart / Include / FWContnt.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.6 KB  |  99 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWContnt.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWCONTNT_H
  11. #define FWCONTNT_H
  12.  
  13. #ifndef FWPRTDEF_H
  14. #include "FWPrtDef.h"
  15. #endif
  16.  
  17. // ----- Foundation Includes -----
  18.  
  19. #ifndef FWSTDDEF_H
  20. #include "FWStdDef.h"
  21. #endif
  22.  
  23. #ifndef FWRUNTYP_H
  24. #include "FWRunTyp.h"
  25. #endif
  26.  
  27. // ----- OpenDoc Includes -----
  28.  
  29. #ifndef _ODTYPES_
  30. #include <ODTypes.h>
  31. #endif
  32.  
  33. //========================================================================================
  34. //    Forward Declarations
  35. //========================================================================================
  36.  
  37. class ODStorageUnit;
  38.  
  39. class FW_CPart;
  40. class FW_CCloneInfo;
  41. class FW_CPromise;
  42. class FW_CFrame;
  43. class ODShape;
  44.  
  45. //========================================================================================
  46. //    class FW_CContent
  47. //========================================================================================
  48.  
  49. class FW_CContent
  50. {
  51. //----------------------------------------------------------------------------------------
  52. //    Initialization/Destruction
  53. //
  54.   public:    
  55.     FW_CContent(Environment* ev, FW_CPart* part);
  56.     virtual ~FW_CContent();
  57.  
  58. //----------------------------------------------------------------------------------------
  59. //    Public API
  60. //
  61. public:
  62.     virtual void                    Externalize(Environment* ev,
  63.                                             ODStorageUnit* storageUnit,
  64.                                             FW_EStorageKinds storageKind,
  65.                                             FW_CCloneInfo* cloneInfo);
  66.     virtual FW_Boolean                Internalize(Environment* ev,
  67.                                             ODStorageUnit* storageUnit, 
  68.                                             FW_EStorageKinds storageKind,
  69.                                             FW_CCloneInfo* cloneInfo);
  70.  
  71.     virtual void                    ReleaseAll(Environment *ev);
  72.  
  73.     // ----- Shape of the data -----
  74.     virtual ODShape*                CreateDataFrameShape(Environment* ev) const;
  75.     
  76.     // ----- Getters -----
  77.     FW_CPart*                        GetPart(Environment* ev) const;
  78.     
  79. //----------------------------------------------------------------------------------------
  80. //    Data Members
  81. //
  82. private:
  83.     FW_CPart*                        fPart;
  84. };
  85.  
  86. //========================================================================================
  87. //    Inlines
  88. //========================================================================================
  89.  
  90. //----------------------------------------------------------------------------------------
  91. //    FW_CContent::GetPart
  92. //----------------------------------------------------------------------------------------
  93. inline FW_CPart* FW_CContent::GetPart(Environment*) const
  94. {
  95.     return fPart;
  96. }
  97.  
  98.  
  99. #endif